package com.zr.dao.order;

import com.zr.vo.order.OrderStatus;
import java.util.Date;
import java.util.List;

/**
 * 订单状态处理
 * @author huangguilong
 */
public interface OrderStatusDao {
    int deleteByPrimaryKey(Integer id);

    int insert(OrderStatus record);

    int insertSelective(OrderStatus record);

    OrderStatus selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(OrderStatus record);

    int updateByPrimaryKey(OrderStatus record);

    /**
     * 获取当前节点时间
     * @param statusTicketId
     * @return Date
     * @author huangguilong
     */
    Date selectCurrentNodeTimeByTicketId(String statusTicketId);

    int rollBackStatus(String statementId);

    /**
     * 根据调度单Id获取所有状态信息
     * @param ticketId
     * @return List<OrderStatus>
     * @author huangguilong
     */
    List<OrderStatus> selectAllByTicketId(String ticketId);

    List<OrderStatus> listDispathMessages();
}